#pragma once

#include <Windows.h>
#include <string>

#include "..\Scrabble_Server\TopMessage.h"

using namespace std;

class Game;

class StatsManager
{
	string mLocalPlayerUsername;

public:
	typedef struct SStat
	{
		string username;
		UINT points;
		bool isLocalPlayer;
		bool isUsed;
	}Stat;

	Stat mStats[15];
	HFONT mNormalFont;
	HFONT mPlayerFont;
	HFONT mHeaderFont;
	RECT mRect;

	HBRUSH mHeaderBrush;

	int mColumn1X;
	int mColumn2X;
	float mStatLineHeight;
		

public:
	StatsManager(void);
	~StatsManager(void);

public:
	void SetPlayerUsername(string _localPlayerUsername);
	void Update(PipeMessage* _msg, bool _destroyMsg = true);
	void Render(HDC _surface, bool _center = false);
};

